package com.ziqikeji.adapter.inherit;

import com.ziqikeji.adapter.Voltage5;

/**
 * 手机（客户端）
 * Created by FlyFive on 2018/5/23.
 */
public class Mobile {
    /**
     * 充电方法
     *
     * @param voltage5
     */
    public void charging(Voltage5 voltage5) {
        System.out.println("电压刚刚好5V，开始充电");
    }

    public static void main(String[] args) {
        Mobile mobile = new Mobile();
        mobile.charging(new VoltageAdapter());
    }
}
